﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true"
    CodeBehind="Default.aspx.cs" Inherits="HelfenHelfen.Web.Forms.Site.Default" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>

<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">
    <asp:ScriptManagerProxy runat="server" />
    <asp:ObjectDataSource ID="odsCities" runat="server" SelectMethod="GetAllCities" TypeName="HelfenHelfen.Logic.DemandLogic" />
    <asp:ObjectDataSource ID="odsCategories" runat="server" SelectMethod="GetAll" TypeName="HelfenHelfen.Logic.DemandCategoryLogic" />
    <asp:ObjectDataSource ID="odsProjects" runat="server" SelectMethod="GetAllHighlights"
        TypeName="HelfenHelfen.Logic.DemandLogic" />
    <asp:LoginView runat="server">
        <AnonymousTemplate>
            <h1>
                HERZLICH WILLKOMMEN!</h1>
        </AnonymousTemplate>
        <LoggedInTemplate>
            <h1><asp:LoginName  FormatString="HERZLICH WILLKOMMEN <i>{0}</i>!" runat="server" /></h1>
        </LoggedInTemplate>
    </asp:LoginView>
    <p>
        Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula
        eget dolor. Aenean massa. Cum sociis natoque penatibus et magnis dis parturient
        montes, nascetur ridiculus mus. Donec quam felis, ultricies nec, pellentesque eu,
        pretium quis, sem. Nulla consequat massa quis enim. Donec pede justo, fringilla
        vel, aliquet nec, vulputate eget, arcu. In enim justo, rhoncus ut, imperdiet a,
        venenatis vitae, justo. Nullam dictum felis eu pede mollis
    </p>
    <div class="info">
        <div class="left">
            <asp:ListView ID="lvProjects" runat="server" DataSourceID="odsProjects" EnableViewState="false">
                <ItemTemplate>
                    <div class="box">
                        <h2>
                            <%# Eval("Title") %></h2>
                        <asp:Image ID="Image1" runat="server" ImageUrl='<%# "~/ShowImageByDemand.ashx?id=" + Eval("DemandGUID") %>' />
                        <p>
                            <%# Eval("Description") %></p>
                    </div>
                    <!-- .box -->
                </ItemTemplate>
            </asp:ListView>
        </div>
        <!-- .left -->
        <div class="right">
            <div class="box">
                <h2>Projektsuche</h2>
                <br />
                <asp:DropDownList ID="ddlCity" runat="server" ViewStateMode="Enabled" DataSourceID="odsCities" />
                <asp:DropDownList ID="ddlCategory" runat="server" ViewStateMode="Enabled" DataSourceID="odsCategories"
                    DataTextField="Name" DataValueField="DemandCategoryGUID" />
                <asp:TextBox ID="txtDate" runat="server" />
                <asp:CalendarExtender ID="CalendarExtender1" runat="server" TargetControlID="txtDate" Format="dd.MM.yy" TodaysDateFormat="dd. MMMM yyyy" DaysModeTitleFormat="MMMM yyyy">
                </asp:CalendarExtender>
                <asp:TextBoxWatermarkExtender runat="server" TargetControlID="txtDate" WatermarkText="Datum" WatermarkCssClass="watermarktext" />

                <asp:Button ID="btnSearch" runat="server" Text="Projekte Suchen" OnClick="btnSearch_Click" />
                <p>
                    <br />
                    Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula
                    eget dolor. Aenean massa. Cum sociis natoque penatibus et magnis dis parturient
                    montes, nascetur ridiculus mus. Donec quam felis, ultricies nec,
                </p>
            </div>
            <!-- .box -->
        </div>
        <!-- .right -->
    </div>
    <!-- .info -->
</asp:Content>
